<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:forgeview="http://jboss.org/forge/view"
	template="/resources/templates/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="id" value="#{sysUserRoleBean.id}"/>
		<f:event type="preRenderView" listener="#{sysUserRoleBean.retrieve}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="View Sys User Role"/>

	<ui:define name="header">
		Sys User Role
	</ui:define>

	<ui:define name="subheader">
		View existing Sys User Role
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:panelGrid columnClasses="label,component,required" columns="3">
			<h:outputLabel for="sysUserRoleBeanSysUserRoleRoleName" value="Role Name:"/>
			<h:outputText id="sysUserRoleBeanSysUserRoleRoleName" value="#{sysUserRoleBean.sysUserRole.roleName}"/>
			<h:outputText/>
			<h:outputLabel for="sysUserRoleBeanSysUserRoleRoleDescr" value="Role Descr:"/>
			<h:outputText id="sysUserRoleBeanSysUserRoleRoleDescr" value="#{sysUserRoleBean.sysUserRole.roleDescr}"/>
			<h:outputText/>
			<h:outputLabel for="sysUserRoleBeanSysUserRoleSysUserLogins" value="Sys User Logins:"/>
			<h:dataTable id="sysUserRoleBeanSysUserRoleSysUserLogins" styleClass="data-table" value="#{forgeview:asList(sysUserRoleBean.sysUserRole.sysUserLogins)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Sys Org"/>
					</f:facet>
					<h:link outcome="/form/sysUserLogin/view">
						<f:param name="id" value="#{_item.userNo}"/>
						<h:outputText id="forgeviewdisplayitemSysOrg" value="#{forgeview:display(_item.sysOrg)}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Hr Emp"/>
					</f:facet>
					<h:link outcome="/form/sysUserLogin/view">
						<f:param name="id" value="#{_item.userNo}"/>
						<h:outputText id="forgeviewdisplayitemHrEmp" value="#{forgeview:display(_item.hrEmp)}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Sys User Role"/>
					</f:facet>
					<h:link outcome="/form/sysUserLogin/view">
						<f:param name="id" value="#{_item.userNo}"/>
						<h:outputText id="forgeviewdisplayitemSysUserRole" value="#{forgeview:display(_item.sysUserRole)}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="User Name"/>
					</f:facet>
					<h:link outcome="/form/sysUserLogin/view">
						<f:param name="id" value="#{_item.userNo}"/>
						<h:outputText id="itemUserName" value="#{_item.userName}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="User Password"/>
					</f:facet>
					<h:link outcome="/form/sysUserLogin/view">
						<f:param name="id" value="#{_item.userNo}"/>
						<h:outputText id="itemUserPassword" value="#{_item.userPassword}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel for="sysUserRoleBeanSysUserRoleSysApproveLevels" value="Sys Approve Levels:"/>
			<h:dataTable id="sysUserRoleBeanSysUserRoleSysApproveLevels" styleClass="data-table" value="#{forgeview:asList(sysUserRoleBean.sysUserRole.sysApproveLevels)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Approved Level Descr"/>
					</f:facet>
					<h:link outcome="/form/sysApproveLevel/view">
						<f:param name="id" value="#{_item.approvedLevelNo}"/>
						<h:outputText id="itemApprovedLevelDescr" value="#{_item.approvedLevelDescr}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Approved Level Val"/>
					</f:facet>
					<h:link outcome="/form/sysApproveLevel/view">
						<f:param name="id" value="#{_item.approvedLevelNo}"/>
						<h:outputText id="itemApprovedLevelVal" value="#{_item.approvedLevelVal}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel for="sysUserRoleBeanSysUserRoleSysUserLogins1" value="Sys User Logins_1:"/>
			<h:dataTable id="sysUserRoleBeanSysUserRoleSysUserLogins1" styleClass="data-table" value="#{forgeview:asList(sysUserRoleBean.sysUserRole.sysUserLogins_1)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Sys Org"/>
					</f:facet>
					<h:link outcome="/form/sysUserLogin/view">
						<f:param name="id" value="#{_item.userNo}"/>
						<h:outputText id="forgeviewdisplayitemSysOrg" value="#{forgeview:display(_item.sysOrg)}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Hr Emp"/>
					</f:facet>
					<h:link outcome="/form/sysUserLogin/view">
						<f:param name="id" value="#{_item.userNo}"/>
						<h:outputText id="forgeviewdisplayitemHrEmp" value="#{forgeview:display(_item.hrEmp)}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="User Name"/>
					</f:facet>
					<h:link outcome="/form/sysUserLogin/view">
						<f:param name="id" value="#{_item.userNo}"/>
						<h:outputText id="itemUserName" value="#{_item.userName}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="User Password"/>
					</f:facet>
					<h:link outcome="/form/sysUserLogin/view">
						<f:param name="id" value="#{_item.userNo}"/>
						<h:outputText id="itemUserPassword" value="#{_item.userPassword}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="User Descr"/>
					</f:facet>
					<h:link outcome="/form/sysUserLogin/view">
						<f:param name="id" value="#{_item.userNo}"/>
						<h:outputText id="itemUserDescr" value="#{_item.userDescr}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
		</h:panelGrid>

		<div class="buttons">
			<h:link value="View All" outcome="search" styleClass="btn btn-primary"/> 
			<h:link value="Edit" outcome="create" includeViewParams="true" styleClass="btn btn-primary"/>
			<h:link value="Create New" outcome="create" styleClass="btn btn-primary"/>
		</div>
	</ui:define>

</ui:composition>